package cn.tedu.tmall.admin.content.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import java.io.Serializable;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class ArticleAddParam implements Serializable {

    @Schema(description = "文章标题")
            @NotBlank(message = "文章标题不能为空")
    String title;

    @Schema(description = "文章详情")
            @NotBlank(message = "文章详情不能为空")
            @Size(min = 1)
    String detail;



    @Schema(description = "类别id")
            @NotNull(message = "类别名称不能为空")
    private Long categoryId;
}
